using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("MasEduInstitute")]
    public class MasEduInstitute
    {
        public MasEduInstitute()
        {
            this.hrm_tmp_employee_educations = new HashSet<TmpEmployeeEducation>();
        }

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "EduInsId", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public int EduInsId { get; set; }

		[DataMember, Display(Name = "EduInsCode", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string EduInsCode { get; set; }

		[DataMember, Display(Name = "EduInsName", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string EduInsName { get; set; }

		[DataMember, Display(Name = "EduInsEng", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string EduInsEng { get; set; }

		[DataMember, Display(Name = "EduGov", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<int> EduGov { get; set; }

		[DataMember, Display(Name = "Address", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string Address { get; set; }

		[ForeignKey("District")]
		[DataMember, Display(Name = "DistrictId", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<int> DistrictId { get; set; }

		[DataMember, Display(Name = "PostalCode", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string PostalCode { get; set; }

		[DataMember, Display(Name = "Tel", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string Tel { get; set; }

		[DataMember, Display(Name = "Fax", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string Fax { get; set; }

		[ForeignKey("Country")]
		[DataMember, Display(Name = "CountryId", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<int> CountryId { get; set; }

		[ForeignKey("MaxEduDegree")]
		[DataMember, Display(Name = "MaxEduDegreeId", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<int> MaxEduDegreeId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasEduInstitutesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember]
        public virtual ICollection<TmpEmployeeEducation> hrm_tmp_employee_educations { get; set; }

		public virtual HRM.MasDistrict District { get; set; }

		public virtual HRM.MasCountry Country { get; set; }

		public virtual HRM.MasEduDegree MaxEduDegree { get; set; }

    }
}